<?php
/*
 * @Author: 李明
 * @Date: 2021-08-24 11:59:43
 * @LastEditTime: 2021-11-30 18:05:43
 * @LastEditors: 李明
 * @Description: 
 * @FilePath: /CRM2.0-PHP/app/Models/Bank.php
 * @山东壹零贰肆信息科技有限公司
 */

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Bank
 * 
 * @property int $id
 * @property string|null $bank_name
 * @property string|null $type
 * @property Carbon|null $create_time
 * @property Carbon $update_time
 * @property float $weight
 * 
 * @property Collection|BankCard[] $bank_cards
 *
 * @package App\Models
 */
class Bank extends Model
{
    protected $table = 'bank';

    protected $casts = [
        'weight' => 'float'
    ];

    protected $fillable = [
        'bank_name',
        'type',
        'weight'
    ];

    public function bank_cards()
    {
        return $this->hasMany(BankCard::class);
    }
}
